using System;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application;

[SugarTable("Collector", "采集器")]
[SysTable]
public class Collector : EntityTenant
{
	/// <summary>
	/// 采集器序列号Imei
	/// </summary>
	public string Imei { get; set; }

	/// <summary>
	/// 名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 备注
	/// </summary>
	public string? Remark { get; set; }

	/// <summary>
	/// 在线状态，0离线，1在线
	/// </summary>
	public int Status { get; set; }

	/// <summary>
	/// 最后在线时间
	/// </summary>
	public DateTime? LastOnlineTime { get; set; }

	/// <summary>
	/// 下发状态，0未下发，1下发中，2下发成功，3下发失败
	/// </summary>
	public int IssuedStatus { get; set; }

	/// <summary>
	/// 经度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? Longitude { get; set; }

	/// <summary>
	/// 纬度
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? Latitude { get; set; }

	/// <summary>
	/// 信号强度
	/// </summary>
	public int? RSSI { get; set; }

	/// <summary>
	/// 1水表 其他电表
	/// </summary>
	[SugarColumn(DefaultValue = "0")]
	public int Type { get; set; }
}
